function updateCellList(main)

    stringToList = {};
    set(main.handles.list_cells, 'String', stringToList);
    
    for index = 1 : main.assignedAmount
        
        stage = ['stage' num2str(main.assignedStageTracking{index,1})];
        
        stringToList{index} = stage;       
        
    end
    
    if main.filterGain{2}==1
    listSize = max(size(stringToList));
    stringToList{listSize+1} = 'Independent gain';
    end
                
    
    set(main.handles.list_cells,'Value',1); %Avoids "error" when repopulating LISTBOX
    set(main.handles.list_cells, 'String', stringToList);   % Repopulates listbox



end